<?php
require_once 'loginController.php';
require 'especialidadController.php';
require 'zonaController.php';
require 'localidadController.php';
require 'planController.php';
require 'prestadorController.php';
require 'cartillaController.php';

if (isset($_POST['function_to_call'])){
    $funcName = $_POST['function_to_call'];
    if (function_exists($funcName)) echo $funcName();
    else die("FATAL ERROR: function '" . $funcName . "' not defined");
}

?>